export const options = {
  data() {
    return {
      options: {
        tabSize: 2,
        theme: 'monokai',
        lineNumbers: true,
        cursorHeight: 0.85,
        scrollbarStyle: 'overlay', // 滚动条形式(null/simple/overlay)
        styleActiveLine: true, // 光标所在行高亮
        smartIndent: true, // 智能缩进
        indentWithTabs: true,
        matchBrackets: true, // 括号匹配
        autoCloseBrackets: true,
        showCursorWhenSelecting: true,
        fullScreen: false,
        extraKeys: {
          'Ctrl-Q': 'autocomplete',
          'Alt-Q': function(cm) {
            cm.foldCode(cm.getCursor())
          }
        },
        hintOptions: {
          // 自动补全
          completeSingle: false
        },
        foldGutter: true, // 代码折叠
        lineWrapping: true,
        gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter']
      }
    }
  }
}
